cmake_minimum_required(VERSION 3.16)
project(cudasearch CUDA C CXX)

set(CUDA_ROOT "/usr/local/cuda")
set(CMAKE_CUDA_STANDARD 14)
set(CMAKE_CUDA_COMPILER "${CUDA_ROOT}/bin/nvcc")

# set(CMAKE_CUDA_FLAGS_DEBUG "${CMAKE_CUDA_FLAGS_DEBUG} -g -G")

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_FLAGS "${CAMKE_CXX_FLAGS} -pthread")

find_package(CUDA REQUIRED)

# add subdirectory
add_subdirectory(dsp)
add_subdirectory(sample)
add_subdirectory(test)